<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Contacts_model extends CI_Model {
    public function __construct() {
        parent::__construct();
        $this->load->database();
    }
    public function getAll() {
        $query = $this->db->query("
            SELECT * FROM tb_barangays
            WHERE barangay_id_pk = " .
            $this->session->userdata('barangay_id') .
         "");
        return $query->row_array();
    }
    
   }